/*    */ package com.newcrm.webapi.sub;
/*    */ 
/*    */ import com.newcrm.bean.User;
/*    */ import com.newcrm.db.CustomerFieldManager;
/*    */ import com.newcrm.exception.NotFoundException;
/*    */ import com.newcrm.webapi.AbstractAction;
/*    */ import com.newcrm.webapi.AbstractHttpServlet;
/*    */ import java.io.IOException;
/*    */ import java.util.List;
/*    */ import javax.servlet.RequestDispatcher;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ 
/*    */ public class ShowNewPeople extends AbstractAction
/*    */ {
/*    */   public ShowNewPeople(AbstractHttpServlet servlet)
/*    */   {
/* 21 */     super(servlet);
/*    */   }
/*    */ 
/*    */   public void parse(HttpServletRequest request, HttpServletResponse response)
/*    */     throws IOException, ServletException, NotFoundException
/*    */   {
/* 28 */     User user = super.getLoginUser(request);
/* 29 */     CustomerFieldManager manager = new CustomerFieldManager();
/*    */ 
/* 32 */     String phone = request.getParameter("phone");
/*    */ 
/* 34 */     List fields = manager.list(user.companyId, 
/* 35 */       2);
/* 36 */     request.setAttribute("fields", fields);
/* 37 */     request.setAttribute("phone", phone);
/*    */ 
/* 39 */     request.getRequestDispatcher("/people_new.jsp").forward(request, 
/* 40 */       response);
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.sub.ShowNewPeople
 * JD-Core Version:    0.6.1
 */